// 导入路由
import VueRouter from 'vue-router'

// 注册路由
import Vue from 'vue'
Vue.use(VueRouter)

// 创建路由对象
const router = new VueRouter({
  routes: [{
    path: '/',
    redirect: '/MyGoodsList'
  }, {
    path: '/MyGoodsList',
    component: () => import('@/views/MyGoodsList')
  }, {
    path: '/MyGoodsSearch',
    component: () => import('@/views/MyGoodsSearch')
  }, {
    path: '/MyUserInfo',
    component: () => import('@/views/MyUserInfo')
  }]
})

export default router
